Computing system and data decryption method and computer system with remote copy facility

ABSTRACT

A computing system and encryption/decryption method realizes assurance of security and improvement of throughput in a remote system. For this purpose, encrypted data is written to a storage system, it is determined whether data in the storage system is ciphertext or plaintext, and encrypted data is read, decrypted and re-written in storage asynchronously with writing encrypted data to storage.

BACKGROUND OF THE INVENTION

[0001] A data backup technique is an important means for protection and recovery of data when failure occurs in a computing system The backup technique actually implemented at each operating center is selected based on several parameters such as the extent of failure that can be handled, discrepancy of data with the backup site, interruption of applied work, and amount of delay of response time of the storage system.

[0002] Among these backup techniques, there is a backup technique called remote copy. This is a backup technique in which a storage system itself copies information having received write requests to another storage system. Here, the system as source of copying is called the local system, and the system as destination of copying is called the remote system As an example of remote copy, the SYMMETRIX remote data function is explained in “New products: General-Purpose Parallel Processor and Disk Array”, Nikkei Watcher IBM version, Special Issue, ISBN 4-8222-1558-X, published by Nikkei Business Publications, Inc., Nov. 13, 1995, pp. 256-291

[0003] Here, the path connecting the local system and the remote system can be a storage interface such as ESCON (Enterprise System Connection) in the case of short distance, but in the case of long distance, it goes by way of a circuit using a director or switch In the case of going through such a circuit, especially with a public circuit, encryption of remote copy data is frequently used as a countermeasure against leaking of data. Such encryption and decryption is performed by the storage system itself, or by a director or switch, or the like.

SUMMARY OF THE INVENTION

[0004] The present invention relates to data maintenance in an information processing system by remote copy (also called remote data backup). In particular, it relates to a data encryption and decryption method between a local system and a remote system, as well as a system for realizing it.

[0005] The present invention relates to external storage devices that store computer system data as well as a system integrating them, and in particular, it relates to technology that encrypts and transfers data in remote copy technology that interconnects a plurality of external storage devices (subsystem group) and another plurality of external storage devices (subsystem group) being present at a remote location, and replicates data within the external storage devices (subsystem group) present at the remote location

[0006] Data encryption/decryption is time-consuming processing. Therefore, processing of decrypting data becomes a bottleneck in a system that simultaneously receives multiple encrypted data from a plurality of systems such as corporate backup centers and data centers. Because of this, the situation that the quantity of data that can be received simultaneously becomes smaller, and the data backup capacity of the corporation and the data processing capacity of the data center are limited, is occurring.

[0007] When considering data backup in the event of natural disaster such as earthquake, it is necessary that the main center and the remote center in a center consisting of a host computer (upper layer device) and a subsystem, and the like, be as much as several 100 km apart. Here, subsystem means a controller that performs sending and receiving of information with the upper layer device, and a storage device which contains a disk device, and the like, that performs storage of information (called a disk subsystem when the storage device is a disk device). For this, there have already been put into practice some external storage systems utilizing so-called remote copy functions which replicate and maintain data between subsystems established respectively at a main center and a remote center.

[0008] Remote copy functions are largely divided into two types, synchronous and asynchronous. The synchronous type means a processing procedure whereby, when there was a data update (write) instruction from the host computer (upper layer device) within the main center to the subsystem within the main center, and also the object of that instruction is the object of the remote copy function, after the instructed update (writing) is finished with respect to the subsystem at the remote center as object of that remote copy function, the completion of the update processing is reported to the upper layer device at the main center. In this case, a time delay (transmission time, and the like) arises due to the influence of the capability of the data transmission path between the main center and the remote center according to the geographical distance between them.

[0009] As opposed to this, the asynchronous type means a processing procedure whereby, when there was a data update (write) instruction to the subsystem from the upper layer device within the main center, even when the object of that instruction is the object of the remote copy function, as soon as the update processing of the subsystem within the main center is finished, the completion of the update processing is reported to the upper layer device, and updating (reflection) of the data in the subsystem at the remote center is executed asynchronously with the processing at the main center. Therefore, because the data update is finished with the necessary processing time internal to the main center, the transmission time, and the like, due to storage of data to the remote center doesn't arise.

[0010] With the asynchronous type, it is not the case that the contents of the subsystem at the remote center always match those on the side of the main center. Therefore, when the main center has lost functionality due to disaster, and the like, the data of which the data reflection on the side of the remote center is incomplete becomes lost. However, the performance of access to the subsystem on the main center side can be treated as an equivalent level to when the remote copy function is not implemented.

[0011] In order to realize these remote copy functions with high performance and at low cost between distant places, the asynchronous type is used. In this case, because a public communication circuit is used as the transmission path for transferring (copying) data from the main side to the remote side, as will be described below, protection against leaking of information becomes an important issue.

[0012] [On Transfer of Encrypted Data]

[0013] When data transfer over a public communication circuit is performed, encrypted data transfer is performed for protection against leaking of information, and application of this to remote copy is considered. In this case, encrypted data transfer is performed between the primary disk subsystem group of the main center and the secondary disk subsystem group of the remote center. In remote copy, because data transfers are performed over long times, high data transfer performance and high cryptographic strength must be simultaneously established.

[0014] [On Transfer of Encrypted Data over Communication Channel]

[0015] In a data communication system comprising two or more computers that communicate data over a network, there is a method that an application program of one computer encrypts and transmits data to an application program of another computer. A substantial disclosure of this method is detailed, for example, in Japanese Unexamined Patent Gazette H9-139735, “Encrypted Data Communication System”. In said “Encrypted Data Communication System,” encrypted data transfer over a communication channel is realized by running a relay service program on each of two computers, encrypting data with these relay services, and sending and receiving it over a network.

[0016] By the prior art (Encrypted Data Communication System), the function of encrypted data transfer over a communication channel can be realized. However, with the prior art, when data transfers are performed over a long time, because the same cryptographic key is used for a long time without being updated, there was a risk that the cryptographic key may be maliciously deciphered and data may be stolen. Also, even if the cryptographic key was updated, because it was communicated offline, the data transfer performance was reduced. That is, with the prior art, simultaneous establishment of high data transfer performance and high cryptographic strength is not considered.

[0017] The first aim of the present invention is to provide a remote system that receives encrypted data by remote copy, and the like, with a means that receives a large amount of encrypted data at the same time.

[0018] The second aim of the present invention is to realize a remote copy function that simultaneously establishes high data transfer performance and high cryptographic strength.

[0019] The above aims are achieved by a means that writes encrypted data to a storage system, a means that identifies whether or not data in the storage system is ciphertext or plaintext, and a means that reads, decrypts, and rewrites encrypted data in storage asynchronously with writing of encrypted data to storage.

[0020] In order to solve the aforementioned problems, the present invention mainly adopts the following configuration.

[0021] A computer system with remote copy facility comprising:

[0022] a main center consisting of a primary disk subsystem group having a control means that is connected to an upper layer device and performs sending and receiving of data and a storage means that performs storage of said data; and

[0023] a remote center consisting of a secondary disk subsystem group having a control means that is disposed in a place apart from said primary disk subsystem group and receives encrypted data transferred from said primary disk subsystem group and a storage means that performs storage of said transferred data,

[0024] wherein said primary disk subsystem group updates the cryptographic key at a specified interval or an irregular interval, also interrupts said data transfer to said secondary disk subsystem group and transfers the updated cryptographic key to said secondary disk subsystem group.

[0025] Also, a computer system with remote copy facility comprising:

[0026] a main center consisting of a primary disk subsystem group having a control means that is connected to an upper layer device and performs sending and receiving of data and a storage means that performs storage of said data; and

[0027] a remote center consisting of a secondary disk subsystem group having a control means that is disposed in a place apart from said primary disk subsystem group and receives encrypted data transferred from said primary disk subsystem group and a storage means that performs storage of said transferred data,

[0028] wherein said primary disk subsystem group during execution of data write processing determines whether or not it is time for updating the cryptographic key for encrypted data transfer, and if it is time for updating, updates said cryptographic key, also transfers it to said secondary subsystem assigning a sequence number to said updated cryptographic key, and associates it with transferred data assigned with the sequence number.

[0029] Also, a remote copy method of a storage system constituted by a local storage system that stores data written from an upper layer device and a remote storage system that stores a copy of said data, said method comprising the steps where:

[0030] said local storage system encrypts said data with a cryptographic key;

[0031] said encrypted data is transferred from said local storage system to said remote storage system;

[0032] said cryptographic key is iteratively updated; and

[0033] said updated cryptographic key is transferred from said local storage system to said remote storage system,

[0034] wherein said encryption step uses the updated cryptographic key after said cryptographic key was updated.

BRIEF DESCRIPTION OF THE DRAWINGS

[0035]FIG. 1 is a drawing showing one example of the configuration of a system for receiving remote copied encryption data.

[0036]FIG. 2 is a drawing showing one example of the configuration of a single disk control unit.

[0037]FIG. 3 is a drawing showing one example of the configuration of a remote copy system.

[0038]FIG. 4 is a drawing showing one example of the configuration of a remote copy system using a WAN.

[0039]FIG. 5 is a drawing showing one example of the internal configuration of a host interface.

[0040]FIG. 6 is a drawing showing a flow chart of the processing of receipt of remote copy data.

[0041]FIG. 7 is a drawing showing a flow chart of the processing of decryption

[0042]FIG. 8 is a drawing showing a flow chart showing the processing procedure of the host interface.

[0043]FIG. 9 is a drawing showing one example of the format of an encrypted write command.

[0044]FIG. 10 is a drawing showing one example of the format of a write command before being encrypted.

[0045]FIG. 11 is a drawing showing one example of the structure of an encryption table.

[0046]FIG. 12 is a drawing showing one example of the configuration of a remote copy system which encrypts at the entrance to a WAN.

[0047]FIG. 13 is a drawing showing one example of the internal configuration of a director.

[0048]FIG. 14 is a drawing showing another example of the configuration of a remote copy system using a WAN.

[0049]FIG. 15 is a drawing showing an example of the structure of the format of a log volume.

[0050]FIG. 16 is a drawing showing the overall configuration of a computer system with remote copy facility pertaining to one preferred embodiment of the present invention.

[0051]FIG. 17 is a flow chart showing the processing of the remote copy system.

[0052]FIG. 18 is a drawing showing the configuration of the primary disk subsystem of the main canter related to the present preferred embodiment.

[0053]FIG. 19 is a flow chart showing the processing of the remote copy system.

[0054]FIG. 20 is a flow chart showing the processing of the remote copy system.

[0055]FIG. 21 is a flow chart showing the processing of the remote copy system

DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0056] Next, the first preferred embodiment of the present invention is explained using FIG. 1 to FIG. 14. First is given an explanation of the existing remote copy method which is the main application of the present invention, and then the preferred embodiments of the present invention are explained.

[0057]FIG. 2 shows one example of the configuration of a single disk control unit. Disk control unit 7 is connected to host computer 1 by host interface 2 and channel path 8, and it is constituted by cache memory 3, shared memory 15, disk interface 4 connected to disk drive unit 5, and common bus 6 connecting these. A plurality of disk interfaces can be installed. A plurality of host interfaces 2 also can be installed, and this case does not depend upon whether or not host 1 as connection destination is the same. FIG. 2 of the present preferred embodiment shows an example where each host interface is connected to the same host.

[0058] Host interface 2 and disk interface 4 are equipped with processors, and they operate independently of each other. Also, cache memory 3, shared memory 15, and LAN interface 11 are shared resources that can be referenced from a plurality of host interfaces 2 and a plurality of disk interfaces 4. In cache memory 3, data written to this disk control unit and data read from disk drive unit 5 and output to the host are temporarily stored.

[0059] When the disk control unit has a disk array function, data sent from the host is divided and is stored distributed across a plurality of disk drive units 5. The present preferred embodiment can be applied also to a disk array, but for the sake of simplicity of explanation, in the following explanation, it is explained with an example of operation with an ordinary disk drive unit.

[0060] Host computer 1 has processor 13, main memory 12, and I/O control processor 38. I/O control processor 38 performs input and output with disk control unit 7. Based on instructions from processor 13, in the case of a read command, a read command for the specified disk drive (volume) is generated and transmitted to disk control unit 7, and data from disk control unit 7 is received and stored in main memory 12. In the case of a write command, a write command for the specified disk drive (volume) is generated, and it is transmitted to disk control unit 7 together with write data.

[0061] One example of the configuration of a remote copying system is shown using FIG. 3. Remote copying is a function whereby a disk control unit autonomously copies a specified volume to another disk control unit. This function is realized by a program on a host interface.

[0062] Here, volume A in disk drive unit 5 a of local system 9 is copied into disk drive unit 5 b of remote system 10. In FIG. 3, the local system and the remote system appear to have the same configuration, but in remote copying, it is not necessary that the local system and the remote system have systems of the same configuration, including the running software. Furthermore, they are called local system/remote system for convenience here, but it is not necessary that one be a standby system to the other. For example, the local system may be a main task system, and the remote system may be a data warehouse system. Also in FIG. 3, it is assumed that volumes other than volume A are volumes with different contents used by different applications.

[0063] The operation of remote copying is as follows. First, for a write request command to a disk from host 1 a, host interface #0 (2 a) determines whether or not the volume to destination of writing is the object of remote copying. Information on the volume as object of remote copying is placed in shared memory, and the processor on host interface #0 (2 a) determines by referencing the shared memory. When it is not the object of remote copying, the write request command is processed as is.

[0064] When the destination of writing is the object of remote copying, the write request command is processed as usual, and in addition, the same write request command as the command received from the host is issued to disk control unit 7 b, using host interface #1 (2 b) connected to disk control unit 7 b of remote system 10. By this, a copy of volume A is generated on disk drive unit 5 b of remote system 10. These host interfaces 2 have the functions both of issuing processing and receiving processing of input/output commands. The processing/generation functions of these commands are realized by processing of a processor in host interface 2.

[0065] The start/finish, and the like, of remote copying are controlled from a program on the host using the same commands as ordinary input/output commands. The main commands are described next.

[0066] (1) Initialization & Copy Start command (Copies the entire contents of the specified volume to the destination of copying in order to make the contents of the destination of copying the same as the source of copying (initialize), and also starts remote copying in the specified copy mode (synchronous/asynchronous) for a write request command issued from the host.)

[0067] (2) Interrupt command (Temporarily interrupts the remote copy. Remote copy data with respect to write request commands received after this are held in a buffer, and are provided to a later restart command.)

[0068] (3) Restart command (Restarts interrupted remote copying. Also performs copying of remote copy data held in the buffer.

[0069] (4) Flush command (Forcefully copies remote copy data held in the buffer to the destination of copying.)

[0070] In FIG. 3, the local system and the remote system are connected by the same type of path as the channel path connecting the host computer and the storage system. However, the physical/electrical specifications of a general channel path assume a connection across a comparatively short distance.

[0071] For example, with disk and peripheral device interfaces known as SCSI-2 (Small Computer System Interface-2) standard (ANSI X3.131-1994), the connection distance is a maximum of 25 m. With interfaces using optical connections, the fiber channel standard (ANSI X3.230-1994) adopts a maximum of 10 km. The ESCON standard adopts a maximum of 60 km. Accordingly, such channel path is not applicable to a method of connecting local-remote systems over long distances, for example, Tokyo-Osaka, in remote copying performed for the purpose of a measure for disaster, and the like.

[0072] In order to extend the channel path connection to long distance, as shown in FIG. 4, a WAN (Wide Area Network) 24 provided by communication businesses such as NTT is commonly used. In this case, it is constituted with a conversion device such as a director 22 or extender or switch placed at the point of connection with WAN 24.

[0073] Of such conversion devices, for example, there is the ULTRANET STORAGE DIRECTOR from the American company, CNT. This director 22 is used in a pair with another director 23 on both ends of WAN 24, and performs conversion between the protocol on channel 8 a and the protocol on WAN 24. By this, data on channel path 8 a can be transmitted onto channel path 8 b on the other side via WAN 24.

[0074] Because these conversions are performed independently, storage systems 7 a and 7 b using channel paths 8 a and 8 b and host computers 1 a and 1 b are not aware that they are going via WAN 24, and it appears equivalent to an ordinary channel path connection. Therefore, input/output of data over a long distance becomes possible without changing the storage systems and the programs on the host computers.

[0075] Of such conversion devices, for example, there is the ULTRANET STORAGE DIRECTOR from the American company CNT. This director 22 is used in a pair with another director 23 on both ends of WAN 24, and it transmits data on channel path 8 a onto channel path 8 b on the other side via WAN 24. Storage systems 7 a and 7 b using channel paths 8 a and 8 b and host computers 1 a and 1 b are not aware that they are going via WAN 24, and it appears equivalent to an ordinary channel path connection Therefore, input/output of data over a long distance becomes possible without changing the storage systems and the programs on the host computers.

[0076] When performing exchange of data over a WAN in such manner, data encryption is performed in order to preserve secrecy of the data. The device that performs encryption and decryption can be considered in some cases, but here, the case when the storage system performs encryption is explained. FIG. 5 shows an example of the internal configuration of host interface 2 when host interface 2 of the storage system performs encryption/decryption Host interface 2 is constituted by processor 16, local memory 17, external interface (external I/F) 18, access controller 19, bus interface (bus I/F) 20, and encryption processor 21.

[0077] A command given from the host via channel path 8 is received by external I/F 18, and it is received by processor 16 via the access controller. Processor 16 determines the contents of the command, and in the case of a write command, it writes to disk and cache via bus I/F 20 and bus 6. When the data is encrypted and decryption is necessary, the data decrypted using the encryption processor is written.

[0078] Similarly in the case of a read command, the contents of the disk or cache are read via bus I/F 20 and bus 6, and they are transmitted to the host via access controller 19 and external I/F 18. When the data is encrypted, the data is transmitted after being encrypted using the encryption processor.

[0079] In this manner, encryption and decryption in a storage system are generally performed during transmission and receipt of data. As compared to this, the data receiving method in remote copying of encrypted data according to the present invention is shown in FIG. 1. This method is applied to remote system 10 explained with FIG. 4.

[0080] The configuration of the hardware of the storage system with the present method is fundamentally equivalent to the conventional system explained with FIG. 2, FIG. 4, and FIG. 5. The encryption processor in the storage system is not necessary. The present method is characterized in that decryption processing is performed asynchronously with data receipt, and the device that performs decryption is not the storage system, but the host.

[0081] The procedure of receipt and decryption of remote copy data by the present method is explained using the flow charts from FIG. 6 to FIG. 8.

[0082] A flow chart of the processing of receipt of remote copy data is shown in FIG. 6. This processing is performed by host interface #2 (2 c). Here, because this host interface is used exclusively for receipt of encrypted remote copy data, this flow chart shows the processing procedure for a write command in which the data portion is encrypted.

[0083] When an encrypted write command is received while waiting for a command (100), host interface #2 (2 c) writes the data to the position specified by the write command on the disk (volume) specified by that command (101), and registers information of that write data to an encryption data table stored in shared memory (102).

[0084] An example of the format of an encrypted write command is shown in FIG. 9. The case where the command on channel path 8 b is a SCSI-2 command is shown. LUN 27 is a logical unit number field, and it specifies the disk (volume) as destination of writing. Logical block address 28 indicates the position to start writing of data. The length of the write data is indicated by write data length 29. Write data 30 itself is encrypted, and it is attached from the 10th byte onward. The other fields are not used in the present invention, so their explanation is omitted.

[0085]FIG. 10 is the command format before being encrypted. As is clear by comparison with FIG. 9, that which is encrypted is only the data portion. Therefore, host interface #2 (2 c) which receives the data can write the data to the specified position on the disk without performing decryption processing.

[0086] It is assumed that the length of the data after encryption is the same as the length of the data before encryption.

[0087] Such assumption is accepted for example, in the DES (Data Encryption Standard) encryption system. The processing procedures when the entirety of the command is encrypted and when an encryption system where the data length changes after encryption is adopted are shown in the second preferred embodiment.

[0088]FIG. 11 shows an example of the structure of the encryption table. This table consists of the fields of logical unit number 35, logical block address 36, and write data length 37. These meanings of these fields are the same as those of the fields of the same names of the write command. By referring to the data of this table, the position of the encrypted written data can be known. For example, the first entry indicates that data of 100 blocks length from logical block address 10 on the disk (volume) of logical unit number 0 has been encrypted. The entry of logical unit number −1 indicates the last entry, that is, the end of the encryption table.

[0089] In the present method, decryption processing which takes a long processing time is not performed during receiving. Therefore, the throughput of receiving of data can be improved. This is effective particularly in the case when encrypted data from a plurality of other parties is received.

[0090] Storage in such encrypted state is very effective in some situations. For example, even if by chance data is stolen or leaked at the remote system, it is safe as long as the encryption key is not taken at the same time. That is, if the encryption key is not passed to the remote system, security against theft and leaking as above is assured. When the remote copy destination is used as a data safe box, such method is suitable.

[0091] On the other hand, when considering remote copying as a measure for disaster, after the local system has gone down, it is necessary to restart business as quickly as possible using the copied data and the remote system. For this, when restarting business, it is necessary to restore the copied data to plaintext. In the present invention, this decryption is performed by the host computer of the remote system.

[0092] A flow chart of decryption processing is shown in FIG. 7. This processing is performed by decryption program 25 on host computer (1 b). First, the encryption table in the disk control unit is read (110). Host computer (1 b) obtains the position of the data requiring decryption by referring to this table.

[0093] Next, the entry information of the read encryption table is referenced, the data requiring decryption is read from the disk system (111-112), decryption processing is performed (113), and it is written back to the same position on the disk system (114). This decryption is repeated for all entries in the encryption table (115, 111, 116). By this series of processing, the encrypted data on the disk is decrypted into plaintext.

[0094] In the present preferred embodiment, the encryption table is stored in the shared memory of the disk system. Accordingly, for host computer (1 b) to read the encryption table, an exclusive read command is used. This exclusive command, for example in the case of a SCSI-2 command system, is realized by treating the first 8 bits of the command as a value that is not used by the standard.

[0095] This encryption table read command is generated by I/O control processor 38 of host computer (1 b), and it is interpreted by host interface #3 (2 d) of disk control unit 7 b. That is, host interface #3 (2 d) processes the encryption table read command in addition to ordinary read and write commands. The procedure of host interface #3 (2 d) for realizing this processing is shown in the flow chart in FIG. 8.

[0096] Host interface #3 (2 d), after receipt of the command (120), checks whether that command is an encryption table read command (121). When it is other than an encryption table read command, ordinary command processing is performed (126).

[0097] When it is an encryption table read command, the encryption table in shared memory first is locked (122). By this locking, it prevents other host interfaces having received encrypted remote copy data from updating the encryption table and transmitting incomplete data to the host while host interface #3 (2 d) is reading the encryption table. Accordingly, while this lock is effective, update processing of the encryption table explained with the flow chart in FIG. 6 is reserved.

[0098] After the locking is completed, the contents of the encryption table are read (123), and they are sent to the host (124). Next, the encryption table is initialized (125). The reason for initialization is that because the area indicated by the contents of the encryption table sent to the host is necessarily decrypted, this information no longer needs to be kept. Finally, the lock of the encryption table is released (126), and the series of processing is finished such that the position of newly received encryption data can be stored.

[0099] In order for the host present in the remote system to decrypt encrypted data, it must receive the encryption key from the local system This exchange of the encryption key is performed during the start of the remote copy. Substantially, in FIG. 4, when the “initialization & copy start command” for remote copy has been issued from host la to disk control unit 7 a of the local system, the encryption key is passed from the local disk control unit 7 a to the remote disk control unit 7 b, and then copying of the data is started. Furthermore, when remote host 1 b has issued an encryption table read command for decryption, the encryption key together with the encryption table is passed from disk control unit 7 b to host computer 1 b.

[0100] Such exchange of the encryption key is not necessary when the encryption system is a public key cryptosystem. However, a public key cryptosystem has the drawback that the encryption speed is very slow compared with a private key cryptosystem. On the other hand, there is a secrecy problem also with transmitting a private key as is over a WAN. Therefore, a system whereby encryption of remote copy data is performed with a private key cryptosystem and the encryption key is encrypted with a public key cryptosystem and passed only for the previously described exchange of the encryption key is efficient.

[0101] Also, the disk control unit of the present invention is equipped with a LAN interface. Accordingly, local disk control unit 7 a and remote host 1 b also can directly send and receive the encryption key via a LAN. In this case as well, there is a secrecy problem in transmitting the encryption key as is over the LAN. Accordingly, in this case, it is transmitted using a protocol that performs communication while preserving secrecy over a LAN such as HTTPS and IPsec, which are well-known technologies.

[0102] There are multiple embodiments of the timing for execution of decryption performed by the host shown in FIG. 7. One is a method that executes at a fixed time interval. That is, decryption program 25 on the host reads the encryption table at a fixed time interval and decrypts following the contents thereof.

[0103] When a large quantity of encrypted remote copy data was received, the area for the encryption table in the shared memory may be insufficient. In such case, a notification is given from disk control unit 7 b to decryption program 25 on the host, and decryption processing is started up.

[0104] Substantially, the notification is given from host interface #2 (2 c) to host interface #3 (2 d), and host interface #3 (2 d) transmits the decryption processing startup command to host computer 1 b. I/O control processor 38 of host computer 1 b having received the decryption processing startup command gives a notification to decryption program 25 and starts decryption processing. The decryption startup command applies an undefined command as one of its availabilities in the same manner as the encryption table read command.

[0105] Also, host computer 1 b and disk control unit 7 b are connected by a LAN. Accordingly, the startup of decryption processing also can be notified via the LAN using the LAN interface.

[0106] In the preferred embodiment up to here, it was explained as that the encryption table is placed in shared memory 15 in disk control unit 7 b. However, the storage location of the encryption table is not limited to this. For example, the aims of the present invention can be achieved also when it is placed on a special disk (volume) managed by the disk control unit. In this case, reading of the encryption table by host computer 1 b can be executed by an ordinary disk read command.

[0107] Furthermore, the device that performs decryption also is not limited to host computer 1 b. In the present invention, there is proposed a system that makes the time interval from receipt processing of encrypted data to the start of decryption processing arbitrary by using an encryption table and is capable of executing each processing asynchronously. Accordingly, it can be applied in the same manner in the case when the device that performs decryption is the host interface and even in the case when it is a decryption device connected to common bus 6 in disk control unit 7 b.

[0108] Also, as shown in FIG. 14, it can be applied also in the case when the host itself receives remote copy data. In this case, the host receives encrypted data and writes it to the disk system without decrypting, and then reads the encrypted data from the disk system and rewrites it after decrypting.

[0109] Furthermore, with respect to all of these embodiments, the decryption processing can achieve the same effect not only with software alone, but also with decryption hardware or a combination of hardware and software.

[0110] The second preferred embodiment of the present invention is explained.

[0111] In the present preferred embodiment, the case when not only the data portion of remote copy data but all portions including the command parameters such as a logical unit number are encrypted is explained. That is, it is the case when all fields in FIG. 9 are encrypted. Also in the case when encryption is performed outside the disk control unit, because separation of the command parameters and the data portion is difficult, it becomes in the same state. Explaining in further detail, it is the case when encryption is performed beyond channel path 8 a in FIG. 4.

[0112] Henceforth, the case when encryption is performed between the director of local system 9 and the entrance of the WAN as shown in FIG. 12 is explained as an example.

[0113] In this configuration, packets with all portions encrypted are delivered to host interface #2 (2 c) of disk control unit 7 b. Host interface #2 (2 c) stores in sequence the received packets, as they are without decryption, in log volume 40. By writing without performing decryption which takes a long processing time, the throughput of receipt can be improved. Also, by storing in log volume 40 in this manner, unclear data can be stored temporarily until the proper storage position is decrypted.

[0114] The format of log volume 40 is shown in FIG. 15. The log volume is stored in the order the data was received, in a sequential format with write data length 46 and write data 47 as a group.

[0115] Decryption program 25 on host computer (1 b) reads log volume 40 at an arbitrary timing. Differing with the first preferred embodiment, because the log volume is the same as an ordinary volume, decryption program 25 reads it with an ordinary read command.

[0116] Encrypted packets read by decryption program 25 are decrypted on the host and the command parameters and the data become plaintext. Here, the data is written to the positions on the disk specified by the command parameters. By this series of processing, the encrypted data is decrypted, and it is stored to the intended positions on the disk.

[0117] A method that uses a log in this manner was described also in the explanation of the first preferred embodiment, but it is used also in the case when an encryption system in which the length of the data changes is used and the encryption data cannot be written into the intended position on the disk.

[0118] As for the timing at which decryption performed by the host is executed, just as with the first preferred embodiment, all methods, being the method that executes at a fixed time interval, the method that gives notification from disk control unit 7 b to decryption program 25 on the host, and the method that gives notification using a LAN interface, can be applied.

[0119] Also, in regard also to the device that performs decryption, just as with the first preferred embodiment, it is not limited to host computer 1 b, and the host interface or a decryption device connected to common bus 6 in disk control unit 7 b, decryption hardware, combination of hardware and software, or the like, can be used.

[0120] In the explanation up to here, there was explained an example where packets with all portions encrypted are written to log volume 40 by host interface #2 (2 c). However, the same effect can be obtained also with a configuration whereby director 23 issues commands to write into the log volume. In this case, director 23 has the function not only of simply converting protocols, but also generating arbitrary data write commands.

[0121]FIG. 13 shows an example of the internal configuration of director 23. Director 23 is equipped with processor 41, local memory 42, WAN interface 43, and channel path interface 44. Packets received from the WAN interface are submitted to protocol conversion by processor 23, and they are sent to channel path 8 by channel path interface 44. The aforementioned function of generating “arbitrary data write commands” is realized by the processor and software on director 23.

[0122] Next, the exchange of encryption keys is explained. Encryption device 39 as shown in FIG. 12 is generally used in a pair for encryption-decryption. Exchange of encryption keys and encryption of data are performed between this pair of devices so that communication having preserved secrecy become possible.

[0123] In the present invention, encryption device 39 is not used in a pair. Therefore, the remote system has a function that can respond to the encryption key exchange procedure of encryption device 39 of the local system. This function is explained with encryption by VPN (Virtual Private Network) as an example.

[0124] VPN is realized with technology called IPsec. IPsec is prescribed by RCF 1825 standard to RCF 1829 standard and RCF 2401 standard to RCF 2412 standard, which are established by IETF anternet Engineering Task Force) being an international organization.

[0125] By these standards, the encryption key exchange protocol IKE (Internet Key Exchange) is prescribed. Therefore, exchange of the encryption key with the system configuration in FIG. 12 is realized by performing processing responding to IKE on the remote system side. IKE is processing standard for IP (Internet Protocol) packets, being one of the protocols on a WAN. Therefore, in the present invention, by the fact that director 23 connected to the WAN performs IKE processing, the encryption key is acquired so that decryption is made possible. Director 23, as shown in FIG. 13, has a processor, substantially, IKE processing is realized by this processor's processing the IP packets received by the LAN interface.

[0126] The encryption key received by director 23 is passed to disk control unit 7 b using an unused command of SCSI-2 as was used also in the first preferred embodiment. Furthermore, in the same manner as the first preferred embodiment, it is passed to host computer 1 b. Also, the method of these passings of the encryption key can be via a LAN in the same manner as the first preferred embodiment.

[0127] By the above procedure, a means for simultaneously receiving a large amount of encrypted data on a remote system receiving encrypted data by remote copy, and the like, is achieved, which is the aim of the present invention.

[0128] In the above first and second preferred embodiments, for the sake of simplicity of explanation, they were explained with the local system and the remote system in a one-to-one configuration However, the present invention exhibits more effect by applying to many-to-one, that is, a remote system that simultaneously receives data from a plurality of local systems.

[0129] Furthermore, in the first and second preferred embodiments, they were explained with remote copy as an example, but they can be applied also to a general client-server configuration In this case, the local system corresponds to the client, and the remote system corresponds to the server.

[0130] A computer system with remote copy facility pertaining to a preferred embodiment of the present invention is explained with drawings as follows. FIG. 16 is a drawing showing the overall configuration of a computer system with remote copy facility pertaining to the third preferred embodiment of the present invention, and FIG. 18 is a drawing showing the substantial configuration of the primary disk subsystem of the main center related to the present preferred embodiment.

[0131]FIG. 16 shows an example of the configuration when one preferred embodiment of the present invention was applied in order to perform replication of information (data) between any two centers in a plurality of data centers furnished with computer systems One or a plurality of disk subsystems 3 (3-1, 3-2, . . . , 3-n) on the side of main center 9 and one or a plurality of disk subsystems 7 (7-1, 7-2, . . . , 7-n) on the side of remote center 10 are connected without going through upper layer devices (host computers) 1 and 8, and realize a remote copy system that performs replication of data between both centers. As a connection of disk subsystems that do not go through upper layer devices, SAN (Storage Area Network) can be pointed. FIG. 18 shows an example of the configuration of disk subsystem 3 of main center 9.

[0132] At main center 9 in FIG. 16, upper layer device 1 having a central processing unit (CPU) that performs data processing is connected to primary disk subsystems 3-1, 3-2, . . . , 3-n via interface cables 2 being transmission paths.

[0133] Primary disk subsystem 3-1, also 3-2, . . . , 3-n, as shown in FIG. 18, is equipped with interface controller 21 which performs sending and receiving of data (including information) from upper layer device 1, data buffer 22 which stores data referenced or updated from upper layer device 1 and information related to the storage position of updated data while remote copying is temporarily stopped, magnetic disk drive 23 as a recording medium for recording this data, microprocessor 24 which controls exchange of these data, and disk array subsystem controller 25 which controls each of these elements. Interface controller 21 is also an interface that performs sending and receiving of data with remote center 10.

[0134] Also, primary disk subsystem 3-1, in addition to the constituent element group described above, is equipped with console 26 by which the user sets by what settings remote copying is performed, and remote copy control information storage component 27 which stores control bits representing the present status of remote copying according to control information set by console 26.

[0135] Primary disk subsystem 3-1 of main center 9 is connected to secondary disk subsystem 7-1 of remote center 10 via interface cable 4-1. Similarly, primary disk subsystem 3-2 is connected to secondary disk subsystem 7-2 via interface cable 4-2, and a configuration such that primary disk subsystem 3-n is connected to secondary disk subsystem 7-n of the remote center via interface cable 4-n is adopted.

[0136] In addition, interface cables 4-1, 4-2, . . . , 4-n can also be connected with a general public communication circuit using a circuit connection device, and the like. In the present configuration example, it is described as interface cables 4-1 - 4-n including this point.

[0137] Also, when disk subsystem 3 has a plurality of units, disk subsystem 3-1 is connected via interface cable 5 to disk subsystems 3-2, . . . , 3-n other than disk subsystem 3-1 in which the data as object of remote copying is stored at main center 9. Thus, a configuration such that, on the side of main center 9, with regard to disk subsystem 3-1 in which the data as object of remote copying is stored, the entirety of primary disk subsystem group 3 is connected by interface cable 5 is adopted.

[0138] Primary disk subsystem group 3 is a disk subsystem group that, when a data write request is issued to primary disk subsystem group 3 by upper layer device 1, writes said data to data buffer 22 within its own subsystem in synchronization with this, and furthermore gives a data write instruction to secondary disk subsystem group 7 present in a remote location asynchronously with that the data has been written to data buffer 22 within its own subsystem Said data written to data buffer 22 within its own subsystem is synchronously or asynchronously recorded on magnetic disk drive 23.

[0139] As remote copy methods that write data asynchronously to a remote location, there are a mode in which primary disk subsystem group 3 at main center 9 transfers updated data to secondary disk subsystem group 7 at remote center 10 to which its own subsystem is connected, following the order in which the volume within its own subsystem was updated, and secondary disk subsystem group 7 at remote center 10 reflects the updated data to the volume within its own subsystem following the order received; and a mode in which main center 9 transfers the data as object of transfer, arranging at the optimally scheduled opportunity at primary disk subsystem group 3 independently of the order in which the volume within its own subsystem was updated, and secondary disk subsystem group 7 at remote center 10 reflects the updated data to the volume within its own subsystem following the order updated regardless of the order received.

[0140] Secondary disk subsystem group 7 stores in data buffer 22 within its own subsystem data received via interface controller 21 from primary disk subsystem group 3 connected by interface cable 4.

[0141] That is, there is shown a system configuration such that, when there was a data write instruction from upper layer device 1 to one or a plurality of disk subsystems 3-1, 3-2, . . . , 3-n, the same data is stored also in one or a plurality of disk subsystems 7-1, 7-2, . . . , 7-n within remote center 10. The arrow in FIG. 16 indicates the flow of data for which there was a write instruction from upper layer device 1.

[0142] Primary disk subsystem group 3 has control bits indicating the status of encryption in remote copying within remote copy control information storage component 27, and the remote copying can be put into a temporarily stopped state by changing this control-bit information based on instruction by the system operator at an opportunity set in advance by the system operator or at an opportunity of irregular interval or at any time. In addition, in one embodiment of the present invention, an updated cryptographic key is notified of from the primary side to the secondary side in this temporarily stopped state (details described later). When remote copying is temporarily stopped, primary disk subsystem group 3 reserves without issuing updated data write instructions to secondary disk subsystem group 7.

[0143] Here, in the remote copy control information storage component of primary disk subsystem 3-1, there may be stored control information stipulating whether or not to perform encrypted data transfer with performing remote copying of data to said secondary disk subsystem group.

[0144] When said control information stipulates to perform encrypted data transfer, data encryption is performed and the data is transferred. Also, meanwhile, at said secondary disk subsystem group, said control information of said primary disk subsystem group is confirmed, and when said control information is such that encrypted data transfer is performed, processing appropriate to encryption is performed on the transferred data (for example, treating so as to decrypt the transferred data using the cryptographic key), whereby compatibility of the data copied from the main center to the remote center can be achieved.

[0145] In the present invention, because compatibility of the cryptographic keys used on data at the main center 9 side and data at the remote center 10 side can be achieved by temporarily stopping remote copying in this manner and notifying the remote center of the updated cryptographic key during this period, updating of the cryptographic key for remote copying can be realized without interposing an upper layer device. Therefore, the same function can be realized not only with a mainframe, but also with an open system.

[0146] Also, primary disk subsystem group 3 can release the above-mentioned temporarily stopped state based on instruction by the system operator at an opportunity set in advance by the system operator or an opportunity of irregular interval or at any time.

[0147] When the temporarily stopped state is released, primary disk subsystem group 3, in the case when a data write request is issued from upper layer device 1 to primary disk subsystem group 3, writes the data to data buffer 22 within its own subsystem in synchronization with this, and furthermore gives a data write instruction to secondary disk subsystem group 7 present in a remote location asynchronously with the writing the data to data buffer 22 within its own subsystem. And, the updated cryptographic key is used when actually transferring the data to the remote center.

[0148] By adopting such configuration, updating of the cryptographic key is possible with the same timing in the volume of primary disk subsystem group 3 as object of remote copying within main center 9 and the volume of secondary disk subsystem group 7 within remote center 10. Furthermore, while remote copying is in a temporarily stopped state in primary disk subsystem group 3, the state of the data of primary disk subsystem group 3 at main center 9 at the time when primary disk subsystem group 3 was put into a temporarily stopped state and the state of the data at secondary disk subsystem group 7 at remote center 10 match That is, a state of data where consistency is assured between the two centers at said time is assured and maintained.

[0149] In addition, temporary stopping of remote copying and release of the temporary stopping can be set in units of volume pairs for remote copying. It is also possible to change the state in a volume group unit by setting a plurality of volume pairs to a single volume group. And, a user can recognize whether or not remote copying is presently being performed or in what kind of unit remote copying is being performed by displaying temporary stopping or release of temporary stopping on a console of either subsystem 3 or 7 or upper layer device 1 or 8, or a monitor used when managing these systems.

[0150] The intervals of this temporary stopping and release of temporary stopping of remote copying can be arbitrarily set by a user. Here, there is mentioned a cycle in which remote copying from main center 9 to remote center 10 is performed, then it is temporarily stopped and the updated cryptographic key is transmitted, then the temporary stopping is released and again remote copying is performed, with the time for increase of the danger of deciphering from intercepting of transferred data for remote copy as the period. Of course, the intervals of temporary stopping and release of temporary stopping may be set without being constrained to this example.

[0151] Upper layer device 8 is a central processing unit that is connected by interface cable 6 to secondary disk subsystem group 7 in remote center 10 and performs referencing and updating with respect to secondary disk subsystem group 7. Upper layer device 8 can serve as a substitute for upper layer device 1 to perform processing when upper layer device 1 of main center 9 can no longer perform the normal functions due to disaster or failure, or the like. In addition, it can perform processing different from that of upper layer device 1 of main center 9 independently of upper layer device 1, using data stored in secondary disk subsystem group 7.

[0152] However, when upper layer device 8 does not perform processing on secondary disk subsystem group 7 and when it does not have the substitute function for upper layer device 1, upper layer device 8 is not needed. Conversely, by providing upper layer device 8, connecting disk subsystem 7-1 with other disk subsystems 7-2 - 7-n by interface cable 11, and configuring it in the same manner as primary disk subsystem group 3 of main center 9, it is possible also to make main center 9 in FIG. 16 function as a remote center and remote center 10 as a main center.

[0153] As an embodiment of the present invention, a method of data replication and its operation are explained using FIG. 17.

[0154] The files or volumes and disk subsystem 3 where data as object of replication is stored are selected in advance by an operator according to the need for replication, that is, remote copying. And, the relationship between the object files or object volumes and disk subsystem 3, and the files or volumes and disk subsystem 7 to store the copies of the selected data, as well as whether or not compatibility of the order of updating must always be maintained during replicating, are set in advance by the operator to remote copy control information storage component 27 within primary disk subsystem 3-1 from upper layer device 1 or console 26, or the like.

[0155] Also, for primary disk subsystem 3-1, the opportunity for temporarily stopping remote copying and the opportunity for releasing the temporary stopping are set. Because the setting of the opportunities can be instructed from upper layer device 1, it is possible to schedule in advance the instruction opportunities from upper layer device 1 by a program on upper layer device 1 that supports automation of operation.

[0156] In the event of the above-mentioned selections and settings, when there is a disk subsystem 3 that can connect or equip a dedicated console 26, they can be set through that console 26 without using upper layer device 1. In the present example, temporary stopping of remote copying and release of temporary stopping are set so as to be performed at an irregular interval in primary disk subsystem 3-1 by the operator in advance using time values held inside primary disk subsystem group 3 without using upper layer device 1.

[0157] The flow in FIG. 17 shows the case when selection and setting are performed from a dedicated console. Initial settings of the path and volume pair for remote copying, that is, setting to which disk subsystem the request of remote copying is issued, is set in advance by a user to upper layer device 1 (step 1: shown as S1 in the drawing, the same below). Also, the initial settings of temporary stopping of remote copying and release of temporary stopping are set in the volume pair unit as object of remote copying (step 2). Ordinarily, all volume pairs as object of remote copying are defined as a single volume group, and the volumes within the volume group all are set to be in the same status.

[0158] In the present example, all the volumes of disk subsystem 3 are treated as object of remote copying. Accordingly, below, the state of remote copying is described in disk subsystem units rather than in volume pair or volume group units. As a method of setting files and volumes as object of remote copying, a method of specifying the specific addresses signifying the volumes and disk subsystems, or a method of selecting from an arbitrary range of addresses by the control program within a disk subsystem, can also be adopted. An example of performing setting of the paths and volume pairs and setting of the opportunity for temporary stopping and the opportunity for release of temporary stopping as initial settings is shown.

[0159] When a write command is issued from upper layer device 1 to primary disk subsystem 3-1, 3-2, . . . , 3-n (step 3), primary disk subsystem 3-1, 3-2, . . . , 3-n performs processing of data storage to data buffer 22 within its own disk subsystem based on the write command (step 4). Here, a write command is a command that transfers an instruction to write data and the write data itself,

[0160] When a write command is received, primary disk subsystem 3-1, 3-2, . . . , 3-n confirms as to whether or not primary disk subsystem group 3 is in a remote copy temporarily stopped state by acquiring and referencing the control bit representing the remote copy state being stored in remote copy control information storage component 27 of primary disk subsystem group 3 (step 5). When primary disk subsystem group 3 is in a remote copy temporarily stopped state and if writing of data to data buffer 22 is finished, primary disk subsystem 3-1, 3-2, . . . , 3-n reports the completion of processing of the write command to upper layer device 1 (step 6). After this, a write command is issued to secondary disk subsystem 7-1, 7-2, . . . , 7-n, and processing of the write command is completed.

[0161] In addition, when storage position information of data not transferred to the remote center is being held with respect to data that was previously updated at the main center, all the data at that position also is judged as object of transfer to secondary disk subsystem 7-1, 7-2, . . . , 7-n of remote center and a write command to write that data is issued to secondary disk subsystem 7-1, 7-2, . . . , 7-n, and processing of the write command is completed. At this time, the data is encrypted using the presently set cryptographic key and is transferred from the primary disk subsystem to the secondary disk subsystem. That is, all the data by that write command and the updated data (write data) not transferred are encrypted using the present cryptographic key and all are transferred to the remote center (step 7). After that, the data transfer is put into a temporarily stopped state.

[0162] Next, the cryptographic key within the main center (a cryptographic key is used for encrypting/decrypting data) is updated (step 8). After this, the updated cryptographic key is transferred to secondary disk subsystem 7-1, 7-2, . . . , 7-n (step 9). After transferring the cryptographic key, primary disk subsystem 3-1, 3-2, . . . , 3-n releases the remote copy (data transfer) temporarily stopped state of primary disk subsystem group 3 (step 10). Accordingly, following the temporarily stopped state of the remote copying, the updated new cryptographic key is used. That is, data transferred to the remote side is encrypted with the new cryptographic key (updated cryptographic key), and this encrypted data is transferred to the remote side.

[0163] In addition, in step 8 and step 9, the cryptographic key may be transferred to the remote side by creating data having the same data length/data pattern as data generally transferred from primary disk subsystem group 3 to secondary disk subsystem group 7 and embedding the cryptographic key as a part thereof By doing such, there is no longer a need to use a special packet to transfer the cryptographic key, and because it is thought to be general data from the outside, it becomes possible to conceal the timing of the temporary stopping of remote copying against the outside, and as a result the security when sending the cryptographic key is increased. Here it is important to make the data for embedding the cryptographic key resemble generally transferred data, and it is not necessary to make it always completely match.

[0164] Meanwhile, when primary disk subsystem group 3 is not in a remote copy temporarily stopped state in step 5 and if writing of data to data buffer 22 is finished, primary disk subsystem 3-1, 3-2, . . . , 3-n reports the completion of processing of the write command to upper layer device 1 (step 11) and issues a write command to secondary disk subsystem 7-1, 7-2, . . . , 7-n at an opportunity determined based on the processing capability of its own subsystem In regard to data updated (written) in the main center at this time, a write command may not immediately be issued to the remote center, but this is held within its own subsystem as storage position information of data not transferred to the remote center. Also, when storage position information of data not transferred to the remote center is being held with respect to data that was previously updated at the main center, the data at that position also is judged as object of transfer to secondary disk subsystem 7-1, 7-2, . . . , 7-n of remote center, and a write command to write that data is issued. At this time, it is encrypted using the presently used cryptographic key and is transferred to the secondary side (step 12). That data storage position information is deleted after the transfer processing to the remote side with respect to the write command is completed.

[0165] That is, if primary disk subsystem group 3 is in a remote copy temporarily stopped state, primary disk subsystem group 3 of main center 9 updates the cryptographic key and transfers the updated cryptographic key to secondary disk subsystem group 7 of remote center 10. Moreover, if primary disk subsystem group 3 is not in a remote copy temporarily stopped state, remote copying is performed using the present cryptographic key, originating from that primary disk subsystem group 3 of main center 9 is issued a write command from upper layer device 1.

[0166] When secondary disk subsystem 7-1, 7-2, . . . , 7-n confirms that a write command issued from primary disk subsystem 3-1, 3-2, . . . , 3-n has been received, it performs processing of the write command, that is, data storage processing to data buffer 22 within its own subsystem (step 13).

[0167] When secondary disk subsystem 7-1, 7-2, . . . , 7-n has completed processing of the write command, that is, data storage processing to data buffer 22 within its own subsystem, it makes a report of completion of processing of the write command to primary disk subsystem 3-1, 3-2, . . . , 3-n (step 14).

[0168] By the present invention, data written from upper layer device 1 is not only stored in primary disk subsystem 3-1, 3-2, . . . , 3-n, but it is copied and stored also to secondary disk subsystem 7-1, 7-2, 7-n. Moreover, the state of the data at primary disk subsystem 3-1, 3-2, . . . , 3-n at the point when primary disk subsystem group 3 has gone into a remote copy temporarily stopped state is generated at secondary disk subsystem 7-1, 7-2, . . . , 7-n on the remote center 10 side. At this time, primary disk subsystem group 3 transfers the updated cryptographic key to secondary disk subsystem group 7.

[0169] Secondary disk subsystem group 7, at the point when having received cryptographic key updated by primary disk subsystem group 3, can decrypt data using that updated cryptographic key. When main center 9 was struck by disaster, recovery operations such as reperforming jobs are performed using the data of secondary disk subsystem 7-1, 7-2, . . . , 7-n, and tasks are restarted. These all are realized only with the functions of the disk subsystem, and they do not become a burden on the processing capability of the upper layer device.

[0170] Because the third preferred embodiment of the present invention as explained above is a system that updates the cryptographic key between temporary stopping of remote copying set for each suitable time interval (the significance of temporary stopping of remote copying is the changing of the cryptographic key after this temporary stopping) and release of temporary stopping and notifies also the remote center of the updated cryptographic key, remote copy data restarted at the release of the temporary stopping is decrypted using the updated cryptographic key and the correspondence between the data transferred to the remote center and the cryptographic key becomes clear.

[0171] In the final analysis, the third preferred embodiment of the present invention has the following configurations, functions, or operations. The primary disk subsystem group of the main center and the secondary disk subsystem group of the remote center, being in mutually distant locations, are connected. When the primary disk subsystem group of the main center receives updated data from the upper layer device, it begins storage of the data to its own subsystem.

[0172] And, the primary disk subsystem group confirms whether or not its own subsystem is in the state of timing to change the cryptographic key. When it is not in the state of timing to change the cryptographic key, the primary disk subsystem group treats its data as object of transfer to the remote center using the present cryptographic key. When it is in the state of timing to change the cryptographic key, after sending the presently received data and the unsent part of the data received up to now to the remote center, the primary disk subsystem group temporarily stops data transfer to the remote center, updates the cryptographic key, moreover transfers the updated cryptographic key to the remote center and restarts the temporarily stopped data transfer to the remote center.

[0173] During said temporary stopping, data transfer to the remote center is not performed. After the temporarily stopped state of data transfer to the remote center is released in the primary disk subsystem group, the primary disk subsystem group of the main center restarts data transfer to the secondary disk subsystem group of the remote center using the updated cryptographic key.

[0174] Doing thus, replication of data by remote copy is performed updating the cryptographic key between the main center and the remote center.

[0175] Next, an outline of the data replication method and its operation is explained using FIG. 19 as the fourth preferred embodiment of the present invention.

[0176] As for FIG. 19, steps 21-24 in the flow are common with steps 1-4 in the flow in FIG. 17. Here, the explanation is given from step 25.

[0177] In the event when a write command is received from upper layer device 1, primary disk subsystem 3-1, 3-2, . . . 3-n confirms whether or not primary disk subsystem group 3 is in the state of timing to update the cryptographic key by acquiring and referencing the control-bit representing the state of remote copying stored in remote copy control information storage component 27 of primary disk subsystem group 3 (step 25). When primary disk subsystem group 3 is in the state of timing to update the cryptographic key, primary disk subsystem 3-1, 3-2, . . . , 3-n updates the cryptographic key (step 26).

[0178] After this, in the same manner as data generally transferred from primary disk subsystem group 3 to secondary disk subsystem group 7, a sequence number (corresponds to the data sequence number) is assigned to the updated cryptographic key (step 27), this cryptographic key is transferred to secondary disk subsystem 7-1, 7-2, . . . , 7-n (step 28), information indicating the update position of the data (for example, the address in the data buffer) is kept within the subsystem (step 29), and when writing is finished, the completion of processing of the write command is reported to upper layer device 1 (step 30). Furthermore, primary disk subsystem 3-1, 3-2, . . . , 3-n releases the timing for updating the cryptographic key of primary disk subsystem group 3 (step 31).

[0179] The above matters are explained more substantially. When write requests (write data) from the host are received, the primary disk subsystem stores them in the buffer while assigning sequence numbers to the data in the order the data was received. These data are encrypted at a suitable opportunity using the present cryptographic key (old cryptographic key), and they are transferred together with the sequence numbers to the secondary disk subsystem At this time, the order of the data transferred to the secondary disk subsystem needs not always be the order received from the host. The reason is because the data can be re-sorted in an order based on sequence numbers assigned to the data in the secondary disk subsystem.

[0180] In the meantime, when it becomes time to update the cryptographic key, the primary disk subsystem updates the cryptographic key (new cryptographic key) of its own system, and moreover it adopts a sequence number assigned to write data from the host and transmits the updated cryptographic key together with this sequence number to the secondary disk subsystem Specifically, if the sequence numbers (1), (2), and (3) have been assigned to the data up to now, the sequence number (4) is assigned to the updated cryptographic key at the time of updating of the cryptographic key.

[0181] And, the updated cryptographic key (new cryptographic key) and the sequence number (4) are transferred as a pair to the secondary disk subsystem The secondary disk subsystem having received this, then uses the cryptographic key updated with the sequence number (4) on received data. From another viewpoint, the secondary disk subsystem decrypts data using the cryptographic key before the update on data having sequence numbers of (3) or lower, and decrypts data using the updated cryptographic key on those having sequence numbers of (5) or higher.

[0182] After that, when the primary disk subsystem receives new write requests, because the sequence number (4) already has been used to send the cryptographic key, the sequence number (5) is assigned to this write request data, and they are stored in the buffer. After that, the data is encrypted using the updated cryptographic key at a suitable opportunity, and it is transferred to the secondary disk subsystem together with the sequence number (5).

[0183] When the secondary disk subsystem receives actual data, it organizes the received data according to the sequence numbers. And, the secondary disk subsystem, which has learned that the cryptographic key has been updated at sequence number (4), performs decryption according to need, associating the old cryptographic key with data having the sequence numbers (1), (2) and (3), and associating the new cryptographic key with data having the sequence number (5).

[0184] Also, when it is not time for primary disk subsystem group 3 to update the cryptographic key, when writing is finished, primary disk subsystem 3-1, 3-2, . . . , 3-n reports completion of processing of the write command to upper layer device 1 (step 32), and issues a write command to secondary disk subsystem 7-1, 7-2, . . . , 7-n at an opportunity determined based on the processing capability of its own subsystem. And, it encrypts the data with the present cryptographic key and transfers it to the remote center.

[0185] In regard to data updated in the main center at this time, a write command may not immediately be issued to the remote center, but this is held within its own subsystem together with storage position information of data not transferred to the remote center. Also, when storage position information of data not transferred to the remote center is being held with respect to data that was previously updated at the main center, the data at that position also is judged as object of transfer to secondary disk subsystem 7-1, 7-2, . . . , 7-n of remote center, and a write command to write that data is issued (step 33). And, that data is encrypted using the present cryptographic key and is transferred to the remote center. That data storage position information is deleted after the processing of the write command is completed.

[0186] That is, if it is time for primary disk subsystem group 3 to update the cryptographic key, primary disk subsystem group 3 of main center 9 transfers the updated cryptographic key to secondary disk subsystem group 7 of remote center 10.

[0187] Also, if it is not time for primary disk subsystem group 3 to update the cryptographic key, remote copying is performed, originating from that primary disk subsystem group 3 of main center 9 is issued a write command from upper layer device 1.

[0188] When secondary disk subsystem 7-1, 7-2, . . . , 7-n confirms that a write command issued from primary disk subsystem 3-1, 3-2, . . . , 3-n has been received, it performs processing of the write command, that is, data storage processing to data buffer 22 within its own subsystem (step 34).

[0189] When secondary disk subsystem 7-1, 7-2, . . . , 7-n has completed processing of the write command, that is, data storage processing to data buffer 22 within its own subsystem, it makes a report of completion of processing of the write command to primary disk subsystem 3-1, 3-2, . . . , 3-n (step 35).

[0190] By the present invention, data written from upper layer device 1 is not only stored in primary disk subsystem 3-1, 3-2, . . . , 3-n, but it is copied and stored also to secondary disk subsystem 7-1, 7-2, 7-n Also, at the point when it is time for primary disk subsystem group 3 to update the cryptographic key, a sequence number is assigned to the updated cryptographic key by primary disk subsystem group 3 and it is transferred to secondary disk subsystem group 7.

[0191] Secondary disk subsystem group 7 can decrypt by specifying the data to which the updated cryptographic key is applied using data generally transferred by primary disk subsystem group 3 and the sequence number assigned to the updated cryptographic key. When main center 9 was struck by disaster, recovery operations such as re-performing jobs using the data of secondary disk subsystem 7-1, 7-2, . . . , 7-n, are performed and tasks are restarted. These all are realized only with the functions of the disk subsystem, and they do not become a burden on the processing capability of the upper layer device.

[0192] Next, an outline of the method of data replication and its operation is explained using FIG. 20 as the fifth preferred embodiment of the present invention Here, it is assumed that the secondary disk subsystem stores, as is, encrypted data received from the primary disk subsystem.

[0193] The operation when a disaster has occurred (step 41) at main center 9 during performing of remote copy is shown. Min center notifies remote center 10 that a disaster has occurred (step 42). In response to this, remote center 10 begins disaster recovery such as system startup (step 43). Decryption of data stored without decryption in secondary disk subsystem group 7 of remote center 10 is started in order to put it to use (step 44). At this time, when the cryptographic key is stored in secondary disk subsystem group 7, decryption is performed using that cryptographic key. The cryptographic key can also be stored in a storage device in a separate location outside remote center 10. In this case, that cryptographic key is transferred to secondary disk subsystem group 7 of remote center 10, and decryption is performed using this.

[0194] When data of secondary disk subsystem group 7 is accessed from upper layer device 8 of remote center 10 (step 45), secondary disk subsystem group 7 examines as to whether or not the accessed data has been already decrypted (step 46). When the accessed data has not been yet decrypted, secondary disk subsystem group 7 performs decryption with respect to that data (step 47) and responds to the access using the decrypted data (step 48). When the accessed data has been already decrypted, secondary disk subsystem group 7 responds to the access using that data (step 48). These all are realized only with the functions of the disk subsystem, and they do not become a burden on the processing capability of the upper layer device.

[0195] Thus, when a disaster has occurred in the main center, the copied data in the remote center does not depend on the main center and all the copied data or appropriately accessed copied data is decrypted to be used by the disk subsystem of the remote center in place of the main center.

[0196] Next, an outline of the data replication method and its operation is explained using FIG. 21 as the sixth preferred embodiment of the present invention.

[0197] This is the operation when secondary disk subsystem group 7 is accessed from remote center 10 (step 51) in order to use the data stored in secondary disk subsystem group 7 of remote center 10 which was remote copied and not decrypted. Access to data generally involves searching an ID field or key field related to the data and reading/writing the subsequent data when the search condition was satisfied.

[0198] At this time, it is examined whether or not the search condition on the specific field, for example the key field, is satisfied (step 52). When this condition is satisfied, the subsequent data is decrypted (step 53), and it is read/written (step 54). When this condition is not satisfied, an error report is given without the subsequent data being decrypted (step 55). These all are realized only with the functions of the disk subsystem, and they do not become a burden on the processing capability of the upper layer device.

[0199] According to the present invention, processing of data decryption which takes a long time can be performed asynchronously on the system which receives encrypted data, and it becomes possible to simultaneously receive a large quantity of encrypted data.

[0200] It is possible to realize an encryption system with remote copy facility that can assure consistency of updated data within the scope expected by the user, and can reduce the risk of leaking of information by updating the cryptographic key, just by functional change of the subsystem side without requiring the introduction of new software to the upper layer device. 

What is claimed is:
 1. A computing system being a first computing system connected with a second computing system by a communication channel wherein: said first computing system receives encrypted data from said second computing system, and stores said encrypted data without decrypting.
 2. A computing system being a first computing system connected with a second computing system by a communication channel wherein: said first computing system has a storage system, receives encrypted data from said second computing system, and stores said encrypted data without decrypting in said storage system.
 3. The computing system recited in claim 2, wherein: said first computing system has a network connection device, receives a cryptographic key and encrypted data from said second computing system, and stores said encrypted data without decrypting in said storage system.
 4. The computing system recited in claim 2, wherein: said first computing system has a processor system, receives a cryptographic key and encrypted data from said second computing system, and stores said encrypted data without decrypting in said storage system.
 5. The computing system recited in claim 2, wherein: said processor system reads encrypted data from said storage system, decrypts it, and further writes it in said storage system.
 6. The computing system recited in claim 2, wherein: said network connection device reads encrypted data from said storage system, decrypts it, and further writes it in said storage system.
 7. The computing system recited in claim 2, wherein: said storage system reads encrypted data within said storage system itself and decrypts and writes it.
 8. The computing system recited in claim 2, wherein: said first computing system has a decryption device, said decryption device reads encrypted data from said storage system, decrypts it, and further writes it in said storage system.
 9. The computing system recited in claim 5, wherein: reading of encrypted data from said storage system and writing of decrypted data are performed with respect to the same storage position in said storage system.
 10. The computing system recited in claim 5, wherein: received encrypted data is stored in sequence of receipt without decryption in said storage system, and reading of encrypted data from said storage system and writing of decrypted data are such that writing is to a position being different from the position read in said storage system.
 11. The computing system recited in claim 5, wherein: the interval of reading of encrypted data in said first computing system is an interval of fixed time.
 12. The computing system recited in claim 5, wherein: reading of encrypted data in said first computing system is started by request from the storage system in said first computing system.
 13. The computing system recited in claim 5, wherein: an encryption key is received from the storage system in said first computing system.
 14. The computing system recited in claim 5, wherein: an encryption key is received from the network connection device in said first computing system.
 15. The computing system recited in claim 5, wherein: an encryption key is received from the processor system in said first computing system.
 16. An encryption and decryption method comprising the steps of: reading encrypted data from a storage system that stores encrypted data received in a computing system without decrypting; decrypting it; and further writing it to said storage system.
 17. An encryption and decryption method comprising the steps of: passing a cryptographic key to a decryption device from a storage system that stores the cryptographic key and encrypted data which is not decrypted, received in a computing system; sequentially sending said received encrypted data to said decryption device; decrypting it; and further writing it from said decryption device to said storage system.
 18. A computer system with remote copy facility comprising: a main center consisting of a primary disk subsystem group having a control means that is connected to an upper layer device and performs sending and receiving of data and a storage means that performs storage of said data; and a remote center, which is disposed in a place apart from said primary disk subsystem group, consisting of a secondary disk subsystem group having a control means and receives encrypted data transferred from said primary disk subsystem group and a storage means that performs storage of said transferred data, wherein said primary disk subsystem group updates a cryptographic key at a specified interval or an irregular interval, also interrupts said data transfer to said secondary disk subsystem group and transfers the updated cryptographic key to said secondary disk subsystem group.
 19. The computer system with remote copy facility recited in claim 18, wherein: said primary disk subsystem group creates data having the same data length and data pattern as data transferred to said secondary disk subsystem group, and embeds said cryptographic key in said created data.
 20. A computer system with remote copy facility comprising: a main center consisting of a primary disk subsystem group having a control means that is connected to an upper layer device and performs sending and receiving of data and a storage means that performs storage of said data; and a remote center, which is disposed in a place apart from said primary disk subsystem group, consisting of a secondary disk subsystem group having a control means and receives encrypted data transferred from said primary disk subsystem group and a storage means that performs storage of said transferred data, wherein said primary disk subsystem group, during execution of data write processing, determines whether or not it is time for updating the cryptographic key for encrypted data transfer, and if it is time for updating, updates said cryptographic key, also transfers it to said secondary subsystem assigning a sequence number to said updated cryptographic key, and associates it with the transferred data assigned with the sequence number.
 21. The computer system with remote copy facility recited in claim 18, wherein: data encrypted and transferred from said primary disk subsystem group to said secondary disk subsystem group is kept without decrypting in the storage means of said remote center, and is decrypted in time of disaster recovery.
 22. The computer system with remote copy facility recited in claim 21, wherein: when data is encrypted and transferred from said primary disk subsystem group to said secondary disk subsystem group, said cryptographic key is remote copied to and kept at another remote center disposed in a place separate from said remote center, and data is decrypted using the cryptographic key kept at said other remote center in time of disaster recovery.
 23. An encryption system of the computer system with remote copy facility recited in claim 21, wherein: when data encrypted and transferred from said primary disk subsystem group to said secondary disk subsystem group is decrypted, it is decrypted only when a specific portion of a record concerning said data was searched.
 24. The computer system with remote copy facility recited in claim 18, wherein: said primary disk subsystem group and said secondary disk subsystem group are connected via a storage area network.
 25. The computer system with remote copy facility recited in claim 18, wherein: data transfer between said primary disk subsystem group and said secondary disk subsystem group is performed by synchronous transfer or asynchronous transfer.
 26. A computer system with remote copy facility comprising: a main center consisting of a primary disk subsystem group being connected to an upper layer device and receiving data transfer from said upper layer device; and a remote center consisting of a secondary disk subsystem group being connected with said primary disk subsystem group of said main center and receiving data transfer, wherein said primary disk subsystem group has a remote copy control information storage component that stores control information stipulating whether or not encrypted data transfer is performed when remote copying data to said secondary disk subsystem group, and performs data encryption when said control information stipulates to perform encrypted data transfer; and said secondary disk subsystem group confirms said control information of said primary disk subsystem group, and performs processing appropriate to the encryption with respect to the transferred data when said control information is to perform encrypted data transfer.
 27. A remote copy method of a storage system comprising: a local storage system that stores data written from an upper layer device; and a remote storage system that stores a copy of said data, wherein comprising: a step where said local storage system encrypts said data with a cryptographic key; a step where said encrypted data is transferred from said local storage system to said remote storage system; a step where said cryptographic key is iteratively updated; and a step where said updated cryptographic key is transferred from said local storage system to said remote storage system, wherein said encryption step uses the updated cryptographic key after said cryptographic key was updated.
 28. The remote copy method of the storage system recited in claim 27, wherein: the frequency of iteration of the step where said cryptographic key is updated is determined from the time for deciphering said cryptographic key. 